<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>请输入支付密码</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/common.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/sixPwd.css"/>
    <style>
        body {
            font-size: 14px;
            scroll: no;
            background: rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .pickerToTop {
            position: relative;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        .aui-iconfont {
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 99;
        }

        .title {
            margin-bottom: 20px;
            text-align: center;
        }

        .layer {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
        }
        .tips{
            position: fixed;
            top: 0px;
            padding: 15px 0;
            z-index: 2;
            color: red;
            width: 100%;
            background: #fff;
        }
        .tips span{
            font-size: 20px;
            text-align: center;
            display: block;
            width: 100%;

        }
    </style>
</head>
<body>
<div class="tips"><span>-----请保证已收到货品在确认收货-----</span></div>
<div class="layer" tapmode onclick="cancel()"></div>

</body>
<div class="pickerToTop">
    <i class="aui-iconfont aui-icon-roundclose" tapmode onclick="cancel()"></i>
    <ul class="aui-list-view youfei">
        <li class="aui-list-view-cell title">
            请输入支付密码
        </li>
        <li class=" ">
            <div class="inputBoxContainer" id="inputBoxContainer">
                <input type="number" class="realInput"/>

                <div class="bogusInput">
                    <input type="password" maxlength="6" disabled/>
                    <input type="password" maxlength="6" disabled/>
                    <input type="password" maxlength="6" disabled/>
                    <input type="password" maxlength="6" disabled/>
                    <input type="password" maxlength="6" disabled/>
                    <input type="password" maxlength="6" disabled/>
                </div>
            </div>
        </li>
        <li class="aui-list-view-cell active aui-text-right">
            忘记密码？
        </li>
    </ul>
</div>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/jquery-1.11.3.js"></script>
<script type="text/javascript" src="../../script/mui.js"></script>
<script type="text/javascript" src="../../script/sixPwd.js"></script>
<script type="text/javascript" src="../../script/doT.min.js"></script>
<script type="text/javascript">
    var orderId;
    apiready = function () {
        api.parseTapmode();
        orderId = api.pageParam.orderId;
    }


    boxInput.init(function () {
        getStorageAll();
        var result = boxInput.getBoxInputValue();
        if (result == "123456") {
//            api.sendEvent({
//                name:"makeSureGetPro",
//                extra:{
//                    pass:true,
//                    orderId:orderId
//                }
//            })
            var url2="Order/orderStatusModify/userName/"+ user_name+"/orderId/"+orderId+"/status/4/type/2"
            ajaxRequest(url2, 'post', {}, function (ret, err) {
                if (ret.status == 1) {
                    api.toast({
                        msg: "已确认收货！"
                    })
                    updateOrderNum();

                    setTimeout(function () {
                        cancel();
                    }, 2000)
                }else{
                    api.toast({
                        msg: '确认收货，请稍后重试',
                        duration: 2000,
                        location: 'bottom'
                    });
                }
            })

        } else {
            api.toast({
                msg: "密码错误！"
            })
        }
    })
    function cancel() {
        api.closeFrame();
    }
</script>
</html>
